package com.xwolf.rmi;

import lombok.extern.log4j.Log4j;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author ming
 * @Description:
 * @create 2019-01-26 8:42 PM
 **/
@Service(value="rmiExServiceImpl")
@Log4j
public class RMIExServiceImpl implements RMIExService{

    @PostConstruct
    public void initMethod(){
        System.out.println("我是初始化方法时调用的");
    }
    @Override
    public String invokingRemoteService() {
        // TODO Auto-generated method stub
        String result="欢迎你调用远程接口";
        log.info("RMI interface was called!!!");
        return result;
    }

}
